
import { Base } from '../utils/base.js';

class UserMoney extends Base {
    constructor() {
        super();
    }

    // 获取当前员工状态
    getUserMoney(time,callBack) {
        var params = {
            url: `user-money?time=${time}`,
            type: 'GET',
            sCallBack: function (res) {
                callBack && callBack(res);
            },
        }
        this.request(params);
    }

    // 获取当前员工的奖励
    getUserMoneyStatus(callBack) {
        var params = {
            url: `user-money/status`,
            type: 'GET',
            sCallBack: function (res) {
                callBack && callBack(res);
            },
        }
        this.request(params);
    }
}

export { UserMoney };
